package com.boot.service;

import com.boot.DAO.UserLoginDAO;
import com.boot.DAO.UserPageDAO;
import com.boot.pojo.CustomUserDetail;
import com.boot.pojo.User;
import com.baomidou.mybatisplus.extension.service.IService;
import com.boot.result.Result;
import org.springframework.security.core.userdetails.UserDetailsService;

/**
* @author liyan
* @description 针对表【user】的数据库操作Service
* @createDate 2025-05-01 16:03:22
*/
public interface UserService extends IService<User> {
    Result loginUser(UserLoginDAO userLoginDAO) ;

    User getUserById(Long id);
    User getUserByName(String username);

    Result registerUser(UserLoginDAO userLoginDAO);

    CustomUserDetail selectUserDetailByUsername(String username);
    CustomUserDetail selectUserDetailById(Long id);

    Result pageUsers(UserPageDAO userPageDAO);
}
